package cn.tedu.exam;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;

@Slf4j
@SpringBootApplication
@MapperScan("cn.tedu.exam.mapper")
@ComponentScan(basePackages="cn.tedu")
// 扫描指定包中的所有类,需要注意必须指定到mapper包
// 相当于为这个包中的所有类自动添加@Mapper注解
public class ExamApplication {

    public static void main(String[] args) {
        log.info("这是dev2");
        log.info("这是dev1");
        SpringApplication.run(ExamApplication.class, args);
    }

}
